package com.lmx.persistence.service;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Service;

import com.lmx.persistence.service.common.BaseCrudServiceImpl;
import com.lmx.repoDomain.tmodel.Bed;

/**
 * 床位service实现
 *
 * @author ytche
 * @date 2017年7月14日
 *
 */
@Service(value = "bedService")
public class BedServiceImpl extends BaseCrudServiceImpl<Bed> implements
		BedService {
	@PersistenceContext
	private EntityManager em;

	// @Override
	// public List<Bed> find(Map<String, Object> param) {
	// JPAQuery<Bed> query = new JPAQuery<>(em);
	// final PathBuilder<?> builder = new PathBuilder<Bed>(Bed.class, "entity");
	// query.from(builder);
	// return query.fetch();
	// }
}
